package com.itheima.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class OrderEasyExcel implements Serializable {
    private static final long serialVersionUID = 1L;
    //不需要的字段注释掉
    @ExcelIgnore
    private Long id;
    @ExcelProperty("订单号")
    //订单号
    private String number;
    @ExcelProperty("订单状态")
    //订单状态 1待付款，2待派送，3已派送，4已完成，5已取消
    private Integer status;
    @ExcelProperty("用户")
    //用户名
    private String userName;
    @ExcelProperty("手机号")
    //手机号
    private String phone;
    @ExcelProperty("地址")
    //地址
    private String address;
    @ExcelProperty("下单时间")
    //下单时间
    private LocalDateTime orderTime;
    @ExcelIgnore
    //下单用户id
    private Long userId;
    @ExcelIgnore
    //地址id
    private Long addressBookId;

    @ExcelIgnore
    //结账时间
    private LocalDateTime checkoutTime;

    @ExcelIgnore
    //支付方式 1微信，2支付宝
    private Integer payMethod;

    @ExcelProperty("实收金额")
    //实收金额
    private BigDecimal amount;
    @ExcelIgnore
    //备注
    private String remark;

    @ExcelIgnore
    //收货人
    private String consignee;
}
